package org.nfyszny.zzzs.modules.constant;

public class CertificateConstant {
    public enum CertificateStatus {
        GIVEN_OUT(0, "已颁发"),
        OVERDUE(1, "作废"),
        INVALID(2, "暂停"),
        SUSPENDED(3, "过期");

        private int code;
        private String msg;

        CertificateStatus(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum CertificateType {
        ENTERPRISE_RECORD("企业", 0),
        PRODUCT_RECORD("产品", 1),
        PRODUCTION_CAPACITY_RECORD("生产能力", 2),
        CAPACITY_OF_EFFICACY_RECORD("供销能力", 3);
        private String msg;
        private Integer code;

        CertificateType(String msg, Integer code) {
            this.msg = msg;
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public Integer getCode() {
            return code;
        }
    }
}

